﻿using FDStudio.Core.Config.SE;
using FDStudio.Core.Entities;
using System;
using System.Collections.Generic;
using System.Text;

namespace FDStudio.Core.Config
{
    /*
     CreatedOn: 2018-01-31
     CreatedBy: Jackie Lee(天宇遊龍)
     */
    /// <summary>
    /// 配置
    /// </summary>
    public class AppConfig : IComm
    {
        /// <summary>
        /// 应用名称
        /// </summary>
        public string AppName { get; set; }

        /// <summary>
        /// 数据库连接配置
        /// </summary>
        public IList<DbConnectionConfig> DbSettings { get; set; }

        /// <summary>
        /// 搜索配置
        /// </summary>
        public IList<SearchEngineConfig> SearchEngineConfigs { get; set; }

        public static AppConfig Default()
        {
            return new AppConfig
            {
                AppName = "FDStudio",
                DbSettings = new List<DbConnectionConfig>(),
                SearchEngineConfigs = new List<SearchEngineConfig>()
            };
        }
    }
}
